Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
@terraformer/arcgis
Advanced tools
Convert ArcGIS JSON geometries to GeoJSON geometries and vica-versa.
Convert ArcGIS JSON geometries to GeoJSON geometries and vice versa.
npm install @terraformer/arcgis
object
Converts ArcGIS JSON into GeoJSON.
Kind: static method of Terraformer
Returns: object
- GeoJSON.
import { arcgisToGeoJSON } from "@terraformer/arcgis"
arcgisToGeoJSON({
"x":-122.6764,
"y":45.5165,
"spatialReference": {
"wkid": 4326
}
});
>> { "type": "Point", "coordinates": [ -122.6764, 45.5165 ] }
Param | Type | Description |
---|---|---|
JSON | object | The input ArcGIS geometry, feature or feature collection. |
[idAttribute] | string | When converting an ArcGIS Feature its attributes will contain the ID of the feature. If something other than OBJECTID or FID stores the ID, you should pass through the fieldname explicitly. |
object
Converts GeoJSON into ArcGIS JSON.
Kind: static method of Terraformer
Returns: object
- ArcGIS JSON.
import { geojsonToArcGIS } from "@terraformer/arcgis"
geojsonToArcGIS({
"type": "Point",
"coordinates": [45.5165, -122.6764]
})
>> { "x":-122.6764, "y":45.5165, "spatialReference": { "wkid": 4326 } }
Param | Type | Description |
---|---|---|
GeoJSON | object | The input GeoJSON Geometry, Feature, GeometryCollection or FeatureCollection. |
[idAttribute] | string | When converting GeoJSON features, the id will be set as the OBJECTID unless another fieldname is supplied. |
This package is distributed as a UMD module and can also be used in AMD based systems or as a global under the Terraformer
namespace.
<script src="https://unpkg.com/@terraformer/arcgis"></script>
Terraformer.arcgisToGeoJSON(/* ... */);
const Terraformer = require('@terraformer/arcgis');
Terraformer.geojsonToArcGIS(/* ... */);
<script type='module'>
import { arcgisToGeoJSON } from 'https://unpkg.com/@terraformer/arcgis?module';
// look ma, no build step!
arcgisToGeoJSON(/* ... */);
</script>
Type definitions for @terraformer/arcgis
can be found at @types/terraformer__arcgis. To install into your own project:
npm install @types/terraformer__arcgis
Project | Language | Status | Maintainer |
---|---|---|---|
arcgis2geojson | Python | Incomplete | @chris48s |
[2.1.2] - 2022-08-02
@terraformer/spatial
intersects
for multipolygonsapplyConverter
FAQs
Convert ArcGIS JSON geometries to GeoJSON geometries and vica-versa.
The npm package @terraformer/arcgis receives a total of 35,389 weekly downloads. As such, @terraformer/arcgis popularity was classified as popular.
We found that @terraformer/arcgis demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.